<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="refresh" content="3; url = /user/list">
    <title>Delete Page</title>
</head>
<body>
<p>Successfully delete the user and its information.
    Please wait for seconds to redirect to the user list page, or you can click <a href="/user/list?page=1">here</a> </p>
</body>
</html>


<script>
    jsonData();
    function jsonData() {
        $.ajax({
            url:"/user/delete",
            contentType:'application/json;charset=utf-8',
            data:'{"username":"zyp","city":"cd"}',
            type:'post',
            success:function(data){
                alert(data);
            }, error:function (error) {
                alert(error);
            }
        })
    }

</script>